package com.hqyj.freemovie.front.service;

import com.hqyj.freemovie.front.view.Students;
import org.springframework.data.domain.Page;

import java.util.List;

public interface StudentsService {

    //把学生对象保存到Elasticsearch中
    public Students save(Students s) throws Exception;

    //批量添加
    public boolean saveBatch(List<Students> studentsList) throws Exception;


    //更新学生资料
    public Students update(Students s) throws Exception;

    //查询单个学生
    public Students queryStudentBySid(String sid);

    //查询所有学生
    public List<Students> queryAllStudents();

    //删除学生
    public boolean removeStudent(String sid) throws Exception;


    //根据关键字进行全文检索
    public Page elasticSearchByKeyword(String keyword);
}
